//
// Created by 王乐 on 2022/2/22.
//

#include "LePhyQuadBehaviour.h"
#include "LeRigidBody.h"

#include "LeUtils.h"

LePhyQuadBehaviour::LePhyQuadBehaviour()
{}

LePhyQuadBehaviour::~LePhyQuadBehaviour()
{

}

void LePhyQuadBehaviour::Start()
{
    float xrang = LeMath::getRandomF(0.05, 0.1);
    m_pRigidBody->m_Body->ApplyLinearImpulse(b2Vec2(xrang, -0.2), m_pRigidBody->m_Body->GetPosition(), true);
}
